package cn.edu.xmist.decorator;

public abstract class AbstractDecorator extends AbstractCamera{

    private AbstractCamera camera;

    public AbstractDecorator(AbstractCamera camera) {
        this.camera = camera;
    }

    @Override
    public void photo(){
        /**
         * 委托调用被装饰的方法
         */
        camera.photo();
    }
}
